package com.danbay.cloud.auth.web;

import com.danbay.cloud.auth.user.CreateUserDto;
import com.danbay.cloud.auth.user.UserDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationDetailsSource;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.web.authentication.WebAuthenticationDetailsSource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * @author SJG
 *         2017/12/19.
 */
@Controller
@RequestMapping("${web.management:}")
public class MainController {

    @RequestMapping("/")
    public String index(){
        return "/html/index.html";
    }

    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String login() {
        return "/html/login.html";
    }

    @RequestMapping(value = "/logout", method = RequestMethod.GET)
    public String logout() {
        return "/html/logout.html";
    }

    @RequestMapping(value = "/join", method = RequestMethod.GET)
    public String join() {
        return "/html/join.html";
    }

}
